from django.contrib import admin
from .models import *

admin.site.site_header = '星域后台管理系统'  # 设置header
admin.site.site_title = '星域后台管理系统'  # 设置title
admin.site.index_title = '星域后台管理系统'


class TasksProfile(admin.ModelAdmin):
    list_display = ['name', 'reporter', 'time', 'status']
    list_per_page = 10
    search_fields = ['name']


admin.site.register(Task, TasksProfile)
